﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SYH.Product.Model
{
    [Serializable]
    public partial class ProductInfo
    {
        public ProductInfo()
        { }
        #region Model
        private int _id;
        private int _userid = 0;
        private int _type = 0;
        private string _brand = "";
        private string _model = "";
        private string _title = "";
        private string _supplytitle = "";
        private string _imgname = "";
        private int _customtypeid = 0;
        private string _unit = "";
        private decimal _price = 0.00M;
        private int _supplycount = 0;
        private int _leastbuycount = 0;
        private int _viewcount = 0;
        private int _producttype = 0;
        private int _status = 0;
        private int _isdelete = 0;
        private int _validity = 0;
        private int _flag = 0;
        private DateTime _endtime = DateTime.Now;
        private DateTime _updatetime = DateTime.Now;
        private DateTime _createtime = DateTime.Now;
        private string _summary = "";
        private ProductContent _prdcontent = new ProductContent();
        private int _areaidlv1 = 0;
        private int _areaidlv2 = 0;
        private int _areaidlv3 = 0;
        //行业类别
        private int _industryIdLv1 = 0;
        private int _industryIdLv2 = 0;
        private int _industryIdLv3 = 0;
        private decimal activityPrice = 0.00M;
        public decimal ActivityPrice
        {
            set { activityPrice = value; }
            get { return activityPrice; }
        }
        private string images = "";
        public string Images
        {
            set { images = value; }
            get { return images; }
        }
        public int IndustryIdLv1
        {
            set { _industryIdLv1 = value; }
            get { return _industryIdLv1; }
        }
        public int IndustryIdLv2
        {
            set { _industryIdLv2 = value; }
            get { return _industryIdLv2; }
        }
        public int IndustryIdLv3
        {
            set { _industryIdLv3 = value; }
            get { return _industryIdLv3; }
        }

        /// <summary>
        /// 编号
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 商家编号
        /// </summary>
        public int UserId
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 产品类型 如 库存、批发、一手货
        /// </summary>
        public int Type
        {
            set { _type = value; }
            get { return _type; }
        }
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand
        {
            set { _brand = value; }
            get { return _brand; }
        }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model
        {
            set { _model = value; }
            get { return _model; }
        }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 供应信息标题 属于 产品详细
        /// </summary>
        public string SupplyTitle
        {
            set { _supplytitle = value; }
            get { return _supplytitle; }
        }
        /// <summary>
        /// 产品关键词
        /// </summary>
        public string ImgName
        {
            set { _imgname = value; }
            get { return _imgname; }
        }
        /// <summary>
        /// 自定义分类
        /// </summary>
        public int CustomtypeId
        {
            set { _customtypeid = value; }
            get { return _customtypeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Unit
        {
            set { _unit = value; }
            get { return _unit; }
        }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price
        {
            set { _price = value; }
            get { return _price; }
        }
        /// <summary>
        /// 供货总量
        /// </summary>
        public int SupplyCount
        {
            set { _supplycount = value; }
            get { return _supplycount; }
        }
        /// <summary>
        /// 最小起订量
        /// </summary>
        public int LeastBuyCount
        {
            set { _leastbuycount = value; }
            get { return _leastbuycount; }
        }
        /// <summary>
        /// 浏览量
        /// </summary>
        public int ViewCount
        {
            set { _viewcount = value; }
            get { return _viewcount; }
        }
        /// <summary>
        /// 产品类型
        /// </summary>
        public int ProductType
        {
            set { _producttype = value; }
            get { return _producttype; }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete
        {
            set { _isdelete = value; }
            get { return _isdelete; }
        }
        /// <summary>
        /// 有效期
        /// </summary>
        public int Validity
        {
            set { _validity = value; }
            get { return _validity; }
        }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime EndTime
        {
            set { _endtime = value; }
            get { return _endtime; }
        }
        /// <summary>
        /// 刷新时间
        /// </summary>
        public DateTime UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary
        {
            set { _summary = value; }
            get { return _summary; }
        }

        public ProductContent ProductContent
        {
            set { _prdcontent = value; }
            get { return _prdcontent; }
        }

        public int Flag
        {
            set { _flag = value; }
            get { return _flag; }
        }

        public string Code
        {
            get;
            set;
        }
        ///商户注册时所在地区的省

        public int AreaIdLv1
        {
            get
            {
                return _areaidlv1;
            }
            set
            {
                _areaidlv1 = value;
            }
        }

        ///商户注册时所在地区的市
        public int AreaIdLv2
        {
            get
            {
                return _areaidlv2;
            }
            set
            {
                _areaidlv2 = value;
            }
        }
        ///商户注册时所在地区的县
        public int AreaIdLv3
        {
            get
            {
                return _areaidlv3;
            }
            set
            {
                _areaidlv3 = value;
            }
        }
        #endregion Model


    }
}
